package com.example.canaldemospringboot.test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SMSMessageNotifier implements MessageNotifier {
    @Override
    public boolean support(int notifyType) {
        return notifyType == 0;
    }

    @Override
    public void notify(String content) {
        //调用短信通知的api发送短信
        log.info("SMSMessageNotifier:" + content);
    }
}